package com.commonlover.service.impl;

import com.commonlover.mapper.CategoryMapper;
import com.commonlover.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

@Service
@Transactional
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<HashMap<String, Object>> findCategoryByAuthorId(Integer id) {
        return categoryMapper.findCategoryByAuthorId(id);
    }
}
